package base;

public class Person {
    protected String id;
    protected String name;
    protected String gender;

    public Person(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    // 通用的打印信息方法
    public void printInfo() {
        System.out.println("ID: " + id + ", 姓名: " + name + ", 性别: " + gender);
    }
}